<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<title>我的地址</title>
<link rel="stylesheet" href="../css/common/jquery.mobile-1.4.5.min.css">
<link type="text/css" rel="stylesheet" charset="utf-8" href="../plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="../css/myaddress.css">

<link rel="stylesheet" href="../css/common/weui.min.css">
<link rel="stylesheet" href="../css/common/jquery-weui.min.css">
<link rel="stylesheet" href="../css/base.css">

<script src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
<script src="../js/common/jquery-2.0.0.js"></script>
<script src="../plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="../js/common/jquery.mobile-1.4.5.js"></script>
<script src="../js/ajax_req.js"></script>
<script src="../js/api.js"></script>
<script src="../js/common/jquery.cookie.js"></script>
<script src="../js/common/validate.js"></script>

<!--
	作者：wyy8@live.cn
	时间：2017-06-06
	描述：微信
-->

<script type="application/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="application/javascript" src="../js/common/jquery-weui.min.js"></script>

<!--模板-->
<script type="application/javascript" src="../plugins/jquery-tmpl/jquery.tmpl.js"></script>
<script type="application/javascript" src="../plugins/jquery-tmpl/jquery-jtemplates.js"></script>
<script type="application/javascript" src="tmpl/myaddress.js"></script>

</head>
<body>
<div data-role="page" style="background: #F4F4F4;">
	<div id="myaddress_content">
		
	</div>
	
	<iframe id="mapPage" width="100%" height="100%" frameborder="0" style="display: none;position: fixed;top: 0px;bottom: 0px;left: 0px;right: 0px;"
	    src="http://apis.map.qq.com/tools/locpicker?search=1&type=1&key=XNSBZ-ME73G-BPYQ6-IZG63-A6FDE-XGFJB&referer=去钓鱼">
	</iframe> 
	
	<div id="myModal" class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
	  <div class="modal-dialog modal-lg" role="document">
	    <div class="modal-content">
		    <div class="modal-body">
		    	<a href="" class="modal-content-close" data-dismiss="modal" style=" top:0.5rem;position: absolute;right: 1rem;">
		    		<img src="../image/close.png" style="width: 2.17rem;margin-top: 0.3rem;">
		    	</a>
		        <div class="box" id="box">
					
				</div> 
		    </div>
	    </div>
	  </div>
	</div>
</div>
<script>
	
	var myadd_list = []
	
	$(function(){
		ajax(api.selectReceiver, {}, function(data){
			myadd_list = data
			$("#myaddress_content").setTemplateURL('tmpl/myaddress.html');
			$("#myaddress_content").processTemplate(myadd_list);
		})
	})
	
	$('#myModal').on('hidden.bs.modal', function (event) {
    	$("body").css('position','absolute')
    	$(document).scrollTop(scrollTop)
    })
    var scrollTop = 0
    $('#myModal').on('shown.bs.modal', function (event) {
    	scrollTop = $(document).scrollTop()
    	$("body").css('position','fixed')
    })
    
    
</script>
</body>
</html>